// Agent alice in project modules.mas2j
{export bob, sortBook/1}

{import phone="phone.aslm"}
{import library="library.aslm"}

/* Initial beliefs and rules */



/* Initial goals */

!sortBook(aiModernApproach[section(a)]).
!sortBook(lordOfTheRings[section(b)]).
!sortBook(kindsOfMinds[section(a)]).
!sortBook(theHobbit[section(b)]).
!sortBook(lostHours[section(z)]).

/* Plans */

// Sorting Books - books in section b should be handled by bob:

+!sortBook(B[section(a)]) <- !library::putBookToShelf(B, bob).

+!sortBook(B[section(b)]) <- .send(bob, tell, library::needToSort(B[section(b)])).

+!sortBook(B[section(z)]) <- +bookDispatched(B).

